require.config({
    baseUrl:"./js",
    urlArgs:'_='+new Date().getTime(),
    paths:{
        'jquery':[
            "./vendor/jquery/dist/jquery",
            "https://cdn.bootcss.com/jquery/3.1.1/jquery",
        ],
        'bootstrap':[
            "./vendor/bootstrap/dist/js/bootstrap"
        ],
        'css':[
            "./vendor/require-css/css"
        ],
        'text':[
            "./vendor/text/text"
        ],
        'jquery-ui':[
            "https://cdn.bootcss.com/jqueryui/1.12.1/jquery-ui.min"
        ],
        'openlayers':[
            "https://openlayers.org/en/v4.6.4/build/ol"
        ],
        'handlebars':[
            "https://cdn.bootcss.com/handlebars.js/4.0.11/handlebars"
        ],
        'echarts':[
            "https://cdn.bootcss.com/echarts/4.1.0.rc2/echarts"
        ],
        'layui':[
            "./vendor/layui/src/layui"
        ],
        'manifest':[
            "./lib/manifest"
        ],
        'star':[
            "./lib/star"
        ],
        'polyfill':[
          "https://cdn.bootcss.com/babel-polyfill/7.2.5/polyfill.min.js"
        ],
        'lrtk':[
            "./lib/lrtk"
        ]
    },
    shim:{
        'bootstrap':[
            "jquery",
            "css!https://cdn.bootcss.com/minireset.css/0.0.2/minireset.min.css",
            "css!./vendor/bootstrap/dist/css/bootstrap.min.css",
            "css!../css/index.css"
        ],
        'jquery-ui':[
            "jquery",
            "css!https://cdn.bootcss.com/jqueryui/1.12.1/jquery-ui.min.css",
        ],
        'openlayers':[
            "css!https://openlayers.org/en/v4.6.4/css/ol.css",
            "css!../css/index.css"
        ],
        'lrtk':[
            "jquery"
        ],
        'layui':{
            // deps: ["css!./vendor/layui/src/css/layui.css"],
            exports:'layui'
        }
    },
    // config:{
    //     text:{
    //         onXhr:function(xhr, url){
    //             xhr.setRequestHeader('X-Requested-with','XMLHttpRequest')
    //         },
    //         // createXhr:function(){

    //         // },
    //         // onXhrComplete:function(xhr, url){

    //         // }
    //     }
    // }
});
